<template>
	<view class="content">
		<button @click="testclientdb()">请求数据库</button>
		
	</view>
</template>
<script>
	export default {
		data() {
			return {}
		},
		methods: {
			testclientdb() {
				const db = uniCloud.database();
				db.collection("uni-id-users").get().then((res) => {
					// res 为数据库查询结果
					console.log(res)
				}).catch((e) => {
					console.log(e)
				});
			}
		}
	}
</script>
